package com.mediacloud.app.newsmodule.activity.military_encyclopedia

import com.mediacloud.app.model.news.ArticleItem

data class MilitaryEncylopediaResultBean(
    val state: Boolean,
    val data: MilitaryEncylopediaResult
)

data class MilitaryEncylopediaResult(
    val categoryId: Int,//分类
    val title: String,//标题
    val shortTitle: String,//义项
    val content: String,//内容
    val imageSimpleList: List<ImageSimpleList>?,//百科图册
    val entryInfoRelationList: List<EntryInfoRelationList>?,//百科信息项
    val entryDirectoryRelationList: List<EntryDirectoryRelationList>?,//百科章节
    val entryRefList: List<EntryRefList>?,//参考资料
    val simpleInfoDtoList: List<SimpleInfoDtoList>?,//相同标题义项
    val relativeVideoList: List<RelativeVideoList>?,//相关视频
    val relativeEntryList: List<RelativeEntryList>?,//相关词条
    val linkRelationList: List<LinkRelationList>?,//相关引用词条
    val relativeCatalogList: List<RelativeCatalogList>,//相关专题
    var item:ArticleItem?
)

data class ImageSimpleList(
    val url: String,
    val description: String,
    val imageId: Long,
    val imageName: String
)

data class EntryInfoRelationList(val id: Int, val attributeCode: String, val attributeValue: String)
data class EntryDirectoryRelationList(
    val id: Int, val directoryName: String,//章节标题
    val directoryContent: String,//章节内容
    var isSelected: Boolean = false
)

data class EntryRefList(
    val refId: Long,//序号
    val articleTitle: String,//参考文稿名称
    val websiteUrl: String,//参考来源网站地址
    val websiteName: String,//参考来源网站名称
    val publishDate: String,//发布时间
    val refDate: String,//引用时间
)

data class SimpleInfoDtoList(
    val articleId: Long,//义项对应词条的id
    val shortTitle: String,//词条义项
    val title: String,//词条名字
    val logo: String,//词条图标
    val url: String//词条链接
)

data class RelativeVideoList(
    val poster: String,
    val title: String,
    val duration: String,
    val mp4Address: List<VideoAddress>,
    val tsAddress: List<VideoAddress>,
    val vodAddress: List<VideoAddress>
)

data class LinkRelationList(
    val articleId: Long,//词条id
    val logo: String,//词条logo
    val shortTitle: String,//词条义项
    val title: String,
    val url: String//词条链接
)

data class RelativeCatalogList(
    val articleId: Long,//词条id
    val specialId: Long,//专题id
    val logo: String,//词条logo
    val title: String,
    val url: String,//词条链接
    val info: String,//专题摘要
    val articles: List<RelativeEntryList>//专题下的文稿列表

)

data class RelativeEntryList(
    val articleId: Long,//词条id
    val logo: String,//词条logo
    val shortTitle: String,//词条义项
    val title: String,
    val type: Int,
    val url: String//词条链接
)

data class VideoAddress(val title: String, val url: String)



data class SpecialArticle(
    val id: Long,//8291,
    val site_id: Long,//49,
    val name: String,//"百科专题测试",
    val logo: String,
    val prop1: String,//"专题简介",
    val url: String,// "https://page.junhao.chinamcloud.com/cms/rmt9502_html/735/735bkztcs/",
    val InnerCode: String,// "005637",
    val type: Int
)